home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
-
- pshader("
-
- ps_1_1
-
- tex t0 ;spot UV
- tex t1 ;spoz Z
- tex t2 ;texture
-
- mul r0.rgb, t2, c0 ;texture * light color
- +mov_x2_sat r0.a, t2.a ;extraction opacity mask
-
- mul r0.rgb, r0, r0.a ;lighted texture * opacity mask
- +mul r0.a, t0.b, t1.b ;compute light attenuation
-
- mul r0.rgb, r0, r0.a ;complete light with opacity
- +mov r0.a, c0.a ;write 0 to alpha
- ")
-
-